---
const { imgSrc, imgAlt, imgWith } = Astro.props;
---

<th:block th:with={imgWith}>
  <img
    th:src={imgSrc}
    class="absolute h-full block w-full -translate-x-1/2 -translate-y-1/2 top-1/2 left-1/2"
    th:alt={imgAlt}
  />
</th:block>
